package mythread.a02threadcase2;

public class MyRun implements Runnable{
    //书写要执行的代码
    @Override
    public void run() {
        //书写要执行的代码
        for (int i = 0; i < 50; i++) {
            //获取到当前线程的对象
            Thread t = Thread.currentThread();
            System.out.println(t.getName()+":HelloWord");
        }
    }
}
